Skip to content

Migrate to Unity-Package-Template structure#1

Merged
IvanMurzak merged 2 commits into
mainfrom
migrate/package-template-structure
May 28, 2026
Merged

Migrate to Unity-Package-Template structure#1
IvanMurzak merged 2 commits into
mainfrom
migrate/package-template-structure

Conversation

@IvanMurzak
Copy link
Copy Markdown
Owner

Summary

Migrates this repository to the Unity-Package-Template structure, matching the pattern established in Unity-NonDrawingGraphic #1 and Unity-AudioLoader #4.

This is an editor-only package; the sole source file (PostProcess.cs) was relocated into Unity-Package/Assets/root/Editor/Scripts/ with its .meta (and GUID) preserved via git mv.

What changed

  • Package rootUnity-Package/Assets/root/ (UPM layout). package.json keeps version 1.0.0, gains a package.openupm.com scoped registry for scope com.github.ivanmurzak. No dependencies.
  • Installer project added (Installer/) — scoped-registry auto-installer. Installer.Manifest.cs PackageIds = ["com.github.ivanmurzak"]. Test fixtures realigned (single-scope) so the installer converges.
  • Unity-Tests harness projects added (2022.3.62f3 / 2023.2.22f1 / 6000.3.1f1).
  • Workflows activated: release.yml, test_pull_request.yml, test_unity_plugin.yml.
  • asmdefs: Runtime uses excludePlatforms: [] (template-bug fix). Editor asmdef has no Runtime reference (PostProcess needs none). Legacy com.github.ivanmurzak.ios.pods.bitcode.asmdef removed.
  • Removed legacy _PackageRoot/, Commands/, root Packages/ProjectSettings/UserSettings, .vsconfig.
  • README restored (original package README) to both repo root and Unity-Package/Assets/root/README.md.

Local validation (Unity 2022.3.62f3, batchmode)

  • Unity-Package: compiles with 0 errors.
  • Installer: compiles with 0 errors; 13/13 EditMode tests pass (fixture convergence verified).

Human follow-ups before merge

  • Confirm GitHub repo secrets are set for CI: UNITY_LICENSE, UNITY_EMAIL, UNITY_PASSWORD.
  • Review the package.json keywords (added ios, pods, bitcode, postprocess, ci, unity) and unity min version (kept 2019.2).
  • Decide whether the default base branch should move from master to main (template/release workflow triggers on main).
  • Review .github/FUNDING.yml and the activated workflow files.
  • The template ships a generic Gizmos icon.png; replace or remove if undesired.
  • Verify OpenUPM release pipeline against the new structure before tagging a release.

🤖 Generated with Claude Code

IvanMurzak and others added 2 commits May 27, 2026 14:14
Restructure the repository to follow the Unity-Package-Template layout:

- Move package source into Unity-Package/Assets/root/ (UPM package root).
  PostProcess.cs is relocated to Editor/Scripts/ with its .meta preserved.
- Add the Installer project (scoped-registry auto-installer) with passing
  EditMode tests; PackageIds scope = com.github.ivanmurzak.
- Add Unity-Tests harness projects (2022.3 / 2023.2 / 6000.3).
- Add package.json scopedRegistry (package.openupm.com, scope
  com.github.ivanmurzak) and keep version 1.0.0.
- Activate release / test_pull_request / test_unity_plugin workflows.
- Runtime asmdef uses excludePlatforms: [] (template-bug fix); Editor
  asmdef has no Runtime reference (PostProcess needs none).
- Remove legacy _PackageRoot, Commands, root Packages/ProjectSettings/
  UserSettings, and the legacy asmdef.

Validated locally in Unity 2022.3.62f3:
- Unity-Package: 0 compile errors.
- Installer: 0 compile errors, 13/13 EditMode tests pass.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@IvanMurzak IvanMurzak marked this pull request as ready for review May 28, 2026 05:39
@IvanMurzak IvanMurzak merged commit cca65f1 into main May 28, 2026
36 of 54 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant